﻿using System.Collections.Generic;
using System.Collections.ObjectModel;

namespace octalforty.Syndication.Core
{
    /// <summary>
    /// Represents a collection of <see cref="ISyndicationFeedItem"/> objects.
    /// </summary>
    public sealed class SyndicationFeedItemCollection : Collection<ISyndicationFeedItem>
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="SyndicationFeedItemCollection"/> class.
        /// </summary>
        public SyndicationFeedItemCollection()
        {
        }

        /// <summary>
        /// Initializes a new instance of the <see cref="SyndicationFeedItemCollection"/> class 
        /// as a wrapper for the specified list.
        /// </summary>
        /// <param name="list">The <see cref="IList{T}"/> that is wrapped by the new collection.</param>
        public SyndicationFeedItemCollection(IList<ISyndicationFeedItem> list) : 
            base(list)
        {
        }
    }
}
